package java9_3.shopcart;

/**
 * @author oldliu
 * @since 1.0
 */
public class User {
    private String userName,password;
    private String telephone;

    private ShopCart cart=new ShopCart();

    public void add(Product p){
        cart.add(p);
    }
    public void clear(){
        cart.clear();
    }
    public void del(int position){
        cart.del(position);
    }
    public void show(){
        System.out.println(this.userName+"的购物车：");
        cart.show();
    }
}
